//
//  SDSkinAnalysisCell.m
//  skinDetection
//
//  Created by  liangzhun on 2018/11/2.
//  Copyright © 2018年  liangzhun. All rights reserved.
//

#import "SDSkinAnalysisCell.h"
#import "SDDetectionDataModel.h"
@implementation SDSkinAnalysisCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.potView.layer.cornerRadius = 2.5f;
    self.potView.layer.masksToBounds = YES;
    
    SDDetectionDataModel *dataModel = [SDDetectionDataModel shareInstance];
    NSString *image = dataModel.userModel.sex == 0? @"男 拷贝":@"女 拷贝";
    self.peopleImage.image = [UIImage imageNamed:image];
   
    if (dataModel.userModel.sex == 0) {
        [self.consarray enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
            NSLayoutConstraint *lay = obj;
            if (idx == 2||idx == 3) {
                lay.constant = lay.constant - 3;
            }else{
                
             lay.constant = lay.constant - 9;
            }
            
        }];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
